Implement auto-verification for plural-native workflows - #3921
Conversation
Soffi AI SummaryThis PR introduces an auto-verification system for plural-native AI workbench workflows, closing the feedback loop between AI-driven operations and their outcomes without requiring manual intervention. Core motivation: When a workbench AI agent triggers a stack run or service deployment, there was no mechanism to automatically verify whether the operation succeeded. This PR adds a "queued prompt" concept — a deferred prompt enqueued for future execution — that allows the system to schedule a follow-up verification check once a stack run completes or a service has had time to reconcile. Key changes:
Commits
Updated: 2026-07-28 16:39 UTC |
Greptile SummaryImplements automatic verification for successful workbench-originated stack runs.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| lib/console/deployments/pubsub/recurse.ex | Records merged pull requests' generated stack runs and invokes workbench verification on successful stack-queue runs. |
| lib/console/deployments/workbenches.ex | Adds the successful-stack-run lookup and verification-message creation flow. |
| lib/console/schema/pull_request.ex | Adds the stack-run association, query helper, and changeset field. |
| lib/console/schema/workbench_job.ex | Adds a query for locating a workbench job through a pull request's stack run. |
| priv/repo/migrations/20260727224601_add_wb_verification_fields.exs | Adds the nullable indexed stack_run_id foreign key to pull requests. |
| test/console/deployments/pubsub/recurse_test.exs | Covers recording generated stack runs and creating verification activity after successful completion. |
Reviews (2): Last reviewed commit: "Implement auto-verification for plural-n..." | Re-trigger Greptile
462e9c3 to
6cb4bec
Compare
|
plural deploy this |
There was a problem hiding this comment.
Deploy PR is here: https://github.com/pluralsh/plrl-up-demos/pull/2389
* If we know a stack run is spawned by a workbench, auto-verify once it was successful * figure out appropriate service equivalent.
4b802df to
c105d9e
Compare
|
plural deploy this |
There was a problem hiding this comment.
Created deploy PR: https://github.com/pluralsh/plrl-up-demos/pull/2390
c105d9e to
8fa0528
Compare
|
plural deploy this |
There was a problem hiding this comment.
Created deploy PR: https://github.com/pluralsh/plrl-up-demos/pull/2391
Test Plan
Test environment: https://console.your-env.onplural.sh/
Checklist
Plural Flow: console